import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SeqEntityIdHelper } from "./SeqEntityIdHelper";
import { MapCrossGuildWarGuildHelper } from "./MapCrossGuildWarGuildHelper";
type int = number;
//class SCrossGuildWarChooseEnemyInfo
    
    export  class SCrossGuildWarChooseEnemyInfo extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SCrossGuildWarChooseEnemyInfo();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.groupId);
            arg1.writeInt(this.ring);
            arg1.writeDate(this.beginDt);
            arg1.writeDate(this.endDt);
            SeqEntityIdHelper.write(arg1, this.guildIds);
            MapCrossGuildWarGuildHelper.write(arg1, this.chooseEnemyInfo);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.groupId = arg1.readInt();
            this.ring = arg1.readInt();
            this.beginDt = arg1.readDate();
            this.endDt = arg1.readDate();
            this.guildIds = SeqEntityIdHelper.read(arg1);
            this.chooseEnemyInfo = MapCrossGuildWarGuildHelper.read(arg1);
            return;
        }

        public /* const */_type: int=901;

        public /* var */groupId: int;

        public /* var */ring: int;

        public /* var */beginDt: Date;

        public /* var */endDt: Date;

        public /* var */guildIds: Array<any>;

        public /* var */chooseEnemyInfo: Map<any, any> /* flash.utils.Dictionary */;

        public static /* var */_regist: SCrossGuildWarChooseEnemyInfo;
    }

            SCrossGuildWarChooseEnemyInfo._regist = new SCrossGuildWarChooseEnemyInfo(true);
        